﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MessageServer.channels
{
    /**
     * This interface will sink all events that are streamed down from the
     * code to the channel. Implement the sinkEvent function for the events
     * for the actions that has to be occurred for various events streamed down 
     * from the code to the channel.
     * */
    public interface Sink
    {
        /**
         * Called as the last handler for events that are streamed down the channel.
         * The evt is the event that was streamed down the pipe passed in.
         * */
        void sinkEvent(ChannelPipeline pipe, ChannelEvent evt);
    }
}
